from models.base import BaseModel, db


class ImageLibrary(BaseModel):
    __tablename__ = 'image_library'
    __table_args__ = {'comment': '图片素材库表模型'}

    id = db.Column(db.BigInteger, primary_key=True, autoincrement=True)
    title = db.Column(db.String(255), nullable=False, unique=True, comment='标题')
    file_name = db.Column(db.String(255), nullable=False, comment='图片完整路径')
    dy_open_pic_id = db.Column(db.String(255), nullable=False, comment='抖音图片 id')
    status = db.Column(db.String(50), nullable=False, comment='状态')
    remarks = db.Column(db.Text, nullable=False, comment='备注')
